projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ab7b87
)
textview: Fix comparison being the wrong way
author
Benjamin Otte
<otte@redhat.com>
Fri, 23 Sep 2011 20:22:35 +0000
(22:22 +0200)
committer
Benjamin Otte
<otte@redhat.com>
Fri, 23 Sep 2011 20:24:00 +0000
(22:24 +0200)
Keynav failed when the position did _not_ change.
gtk/gtktextview.c
patch
|
blob
|
history
diff --git
a/gtk/gtktextview.c
b/gtk/gtktextview.c
index 4ddc279e16935f542285b43725b354e9f6c3be7f..0fd03c016396712021ac4c42258a74d720cf232d 100644
(file)
--- a/
gtk/gtktextview.c
+++ b/
gtk/gtktextview.c
@@
-5324,7
+5324,7
@@
gtk_text_view_move_cursor_internal (GtkTextView *text_view,
old_xpos = priv->xoffset;
old_ypos = priv->yoffset;
gtk_text_view_move_viewport (text_view, scroll_step, count);
- if ((old_xpos
!= priv->xoffset || old_ypos !
= priv->yoffset) &&
+ if ((old_xpos
== priv->xoffset && old_ypos =
= priv->yoffset) &&
leave_direction != -1 &&
!gtk_widget_keynav_failed (GTK_WIDGET (text_view),
leave_direction))